#ifndef TRANSACTION_QUEUE_H
#define TRANSACTION_QUEUE_H

#include <list>

#include "common.h"
#include "transaction.h"

class transaction_queue_t
{
public:
	transaction_queue_t();
	void start_transaction(transaction_t *t);
	void end_transaction(transaction_t *t);
protected:
	std::list<transaction_t*> transaction_queue_;
	boost::shared_mutex mutex_;
};

#endif // TRANSACTION_QUEUE_H
